package class_1_8.abstract_test;

public class MessageImpl implements IMessage,INews{
    @Override
    public String mgs() {
        return "你好，读书人";
    }

    @Override
    public void print() {
        System.out.println("今天是阳光明媚的一天");
    }
    public static void main(String[] args) {
        IMessage message=new MessageImpl();
        System.out.println(message.mgs());
        INews iNews=(INews)message;
        iNews.print();
    }
}
